<li {% if 'portal.index' == request.endpoint %}class="active"{% endif %}>
    <a href={{ url_for('portal.index') }}>
        <i class="fa fa-home"></i> Portal
    </a>
</li>
